package com.css.zfzx.fwsjcj.modules.app.repository;

import com.css.zfzx.fwsjcj.modules.app.entity.FwVersionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * TODO
 *
 * @author 王昊杰
 * @version 1.0
 * @date 2021/5/28  15:15
 */

@Repository
public interface FwAppRepository extends JpaRepository<FwVersionEntity,String> {

    @Query(nativeQuery = true,value = "select * from fw_version where platform = :platform")
    FwVersionEntity getAppVersion(@Param("platform") String platform);
}
